<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid orange;
        }
        .box1{
            /* 线性渐变 */
            background-image: linear-gradient(30deg, orange,blue);
        }

        .box2{
            /* 径向渐变 */
            background-image: radial-gradient(circle,red,orange);
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>